<?php 
/**
 * eBay Label Printing Program Printer Manufacture Database Table Class 
 * this is a Db Table Class , It stores Printer Manufacture Definations
 * It is a storage table, will only have basic functions
 * @package  eBayLabelPrinter
 * @category Models/DbTable
 * @author   Norman Dong <norman.dong@hotmail.com>
 * @version  Initial
 * @copyright LeadCasket.com
 * @link     www.leadcasket.com
 * @license  Commercial
 */
 class Model_DbTable_Assist_Printermanufacture extends Zend_Db_Table_Abstract 
{
	/**
	 * @var string Class Table Name
	 */
	protected $_name = 'assist_printer_manufacture'; 
	/**
	 * Get printer Manufacture 
	 * Really basic function 
	 * @param int $idPrinterManufacture
	 * @return array  
	 */
	public function getPrinterManufacture($idPrinterManufacture){
		
		$idPrinterManufacture = (int) $idPrinterManufacture;
		$row = $this->fetchRow('`id_printer_manufacture` = '.$idPrinterManufacture);
		if(!$row){
			return false;
		}
		return $row->toArray();		
		
	}
	/**
	 * Get printer Manufacture name
	 * Really basic function
	 * @param int $idPrinterManufacture
	 * @return string name_printer_manufacture
	 */
	public function getPrinterManufactureName($idPrinterManufacture){
		
		$idPrinterManufacture = (int) $idPrinterManufacture;
		$row = $this->fetchRow('`id_printer_manufacture` = '.$idPrinterManufacture);
		if(!$row){
			return false;
		}
		$arrRow = $row->toArray();		
		return $arrRow['name_printer_manufacture'];
		
	}
	
	/**
	 * List All Printer Manufacture 
	 * @return array Two Dimension array
	 */	
	public function listPrinterManufacture(){
		
		$rows = $this->fetchAll('1');
		return $rows->toArray();		
	}
	
	
	
	
				
}
?>